<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素的显示方式</title>
  <style>
    div{
      /* 默认宽度为上级元素的宽度 */
      width: 100px;
      /* 默认高度为内容的高度 */
      height: 100px;
      border: 1px solid red;
    }
    span{
      /* 行内元素默认宽高为内容的宽高 不能通过width/height 修改宽高 */
      width: 100px;
      height: 100px;
      /* 如果必须修改行内元素的宽高需要将显示方式改成块级或行内块 */
      display: inline-block;
      border: 1px solid blue;
    }
    img{
      width: 100px;
      height: 100px;
      /* 隐藏元素 */
      display: none;
    }
    a{
        background-color: #0aa1ed;
        width: 132px;
        height: 40px;
        display: block;
        text-decoration: none;
        text-align: center;
        line-height: 40px;
        color: white;
        /* 设置圆角 */
        border-radius: 3px;
    }
  </style>
</head>
<body>
<a href="">查看详情</a>
<img src="t.jpg">
<img src="t.jpg">
<img src="t.jpg">
<div>div1</div>
<div>div2</div>
<div>div3</div>
<span>span1</span><span>span2</span><span>span3</span>
</body>
</html>